from typing import List
class Solution:
    def moveZeroes(self, nums: List[int]) -> None:

        index1 = 0
        for index2, num in enumerate(nums):
            if num != 0 and index1 != index2:
                nums[index1] = nums[index2]
                index1 += 1
        while index1 < len(nums):
            nums[index1] = 0
            index1+=1
        return None



        """
        Do not return anything, modify nums in-place instead.
        """

solution = Solution()
res = [0,1,0,3,12]
solution.moveZeroes(res)
print(res)